//
//  QDOrderNetWork.m
//  QuDanOEM
//
//  Created by wmz on 2021/11/9.
//

#import "QDOrderNetWork.h"

@implementation QDOrderNetWork

- (void)requestMemberConsumeOrderList:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/order/memberConsumeOrderList" params:params viewController:vc type:Post info:@[@(ShowErrorAlert)]  block:block];
}

- (void)requestmMmberServiceOrderList:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/order/memberServiceOrderList" params:params viewController:vc type:Post info:@[@(ShowErrorAlert)]  block:block];
}

- (void)requestMemberPublishOrderList:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/order/memberPublishOrderList" params:params viewController:vc type:Post info:@[@(ShowErrorAlert)]  block:block];
}

- (void)requestPayPower:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/order/pay/power" params:params viewController:vc type:Get info:@[]  block:block];
}

- (void)requestMemberPurse:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/member/purse" params:params viewController:vc type:Post info:@[@(ShowErrorAlert)]  block:block];
}

- (void)requestOrderDetail:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/order/consumeOrderDetails" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowLoading)]  block:block];
}

- (void)requestOrderCancel:(NSDictionary *)params viewController:(nullable UIViewController*)vc andBlock:(nullable PostNetWorkBock)block{
    [[BSNetAPIClient sharedClient] requestWithPath:@"/qw/app/order/cancel" params:params viewController:vc type:Post info:@[@(ShowErrorAlert),@(ShowLoading)]  block:block];
}

@end
